package ThreadCase;

public class Demo1Lambda {
    //使用Lambda表达式进行简化
    public static void main(String[] args) {
        new Thread(()->{
            for (int i = 0; i < 100; i++) {
                System.out.println("线程1实现"+i);
            }
        }).start();

        new Thread(()->{
            for (int i = 0; i < 100; i++) {
                System.out.println("线程2实现"+i);
            }
        }).start();
    }

}
